import request from '@/utils/request'
// api地址
const api = {
	getList: 'api/address/getList',
	addAddress: 'api/address/add',
	updateAddress: 'api/address/update',
	deleteAddress: 'api/address/delete',
	getDetail: 'api/address/getDetail',
}

// 列表
export function getList(data) {
	return request.get(api.getList, data)
}
// 添加
export function addAddress(data) {
	return request.post(api.addAddress, data)
}
// 修改
export function updateAddress(data) {
	return request.post(api.updateAddress, data)
}
// 删除
export function deleteAddress(data) {
	return request.post(api.deleteAddress, data)
}
// 详情
export function getDetail(data) {
	return request.get(api.getDetail, data)
}